<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'comment-form',
	'enableAjaxValidation'=>false,
)); ?>
	<?php if (!Yii::app()->user->isGuest){ ?>	
	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'content'); ?>
		<?php echo $form->textArea($model,'content',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'content'); ?>
	</div>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>
<?php }else{
	echo '<p>Đăng nhập vào hệ thống' ?><a href="index.php?r=site/login"> Login </a><?php echo 'để có nhiều thông tin hơn</p>';
} ?>
<?php $this->endWidget(); ?>

</div><!-- form -->